<?php	echo $this->doctype(); ?>

<?php
if(!isset($_POST['noSidebar'])) {
	$this->layout()->routeForm = $this->action('select', 'route', 'customer');
	$this->layout()->loginForm = $this->action('login', 'users', 'customer');
	$this->layout()->cancelOrderForm = $this->action('cancel', 'orders', 'customer');
}

?>
<html>
<head>
<?php 
	echo $this->loadSkin($this->skin);
	echo $this->headTitle();
	echo $this->headMeta();
	echo $this->headStyle();
	echo $this->headLink();
    echo $this->headScript();
    echo $this->jQuery();
?>
	

<script type="text/javascript">
function confirmDelete(delUrl) {
  if (confirm("Are you sure you want to delete")) {
	document.location = delUrl;
  }
}</script>

</head>


<body>

	<div id="pageWrapper" class="container span-21 last">	
	
		<div id="header">
			<p>#header</p>	
		</div>
						
		<div id="nav">
			<p>#nav</p>
			<?php echo $this->navigation()->menu(); ?>
		</div>			
		
		
		<?php
			//$customerNS = new Zend_Session_Namespace('customer');
		  ?>		
		<?php
		 if(!isset($_POST['noSidebar'])) {
		 ?>
		<div id="sidebar" class="span-6">
			<div id="routeForm" class="span-6">
				<div class="span-6 fieldsetTitle">Chọn tuyến</div>			
				<?php echo $this->layout()->routeForm; ?>&nbsp;				
			</div>

	        <div id="loginForm" class="span-6">
			<div class="span-6 fieldsetTitle">Đăng nhập</div>	
	            <?php echo $this->layout()->loginForm; ?>&nbsp;	        
	        </div>	        
	        
	        <div id="cancelOrderForm" class="span-6">
	        <div class="span-6 fieldsetTitle">Hủy vé</div>		
	            <?php echo $this->layout()->cancelOrderForm; ?>&nbsp;
	        </div>
	        <div class="span-6"><a class="large" href="/users/register">Đăng ký</a></div>					
		</div>
		
        <div id="main" class="span-14 last"> 
            <?php echo $this->layout()->content; ?>&nbsp; 
        </div> 
		<?php } else { ?>
        <div id="mainExpanded" class="span-21 last"> 
            <?php echo $this->layout()->content; ?>&nbsp; 
        </div>
        <?php }?>
        
		<div id="footer">
			<p>#footer</p>
		</div>
	</div>
	

</body>

</html>